import instance from "@/axios";

export const resourcesPage=(formData)=>instance.post("/resources/resourcesPage",formData);


export const deleteResources=(id)=>instance.delete("/resources/deleteResources/"+id);

// 文件上传
export const  uploadResource = (formData)=>instance.post("/resources/upload",formData)

// 添加资源名称
export const  addResourceInfo = (formData)=>instance.post("/resources/add",formData)

export const downloadResource = (uuid)=>instance.get("/resources/download/"+uuid,{responseType:'arraybuffer'})